﻿@model IEnumerable<ModuleDto>
@Html.Extra()
<ul id="panelbar">
    @foreach (var item in Model)
    {
        <li><span class="k-link">
            <img align="middle" class="k-image" alt="@item.Name" src="@Url.Image(item.IconUrl)">@item.Name</span>
            <ul>
                @foreach (var child in item.Childs)
                {
                    <li key="@child.Id" name="@child.Name" url="@child.CommandArgument">
                        <img align="bottom" class="k-image" alt="@child.Name" src="@Url.Image(child.IconUrl)">@child.Name
                    </li>
                }
            </ul>
        </li>
    }
</ul>
